home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / C / ODTypesB.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  6.1 KB  |  336 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: ODTypesB.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_Module_OpenDoc_Global_TypesB_defined
  11. #define SOM_Module_OpenDoc_Global_TypesB_defined 1
  12. #include <som.h>
  13.  
  14. /*
  15.  * Start of user-defined types:
  16.  */
  17. typedef unsigned long ODDoneState;
  18. #define kODDone 1UL
  19. #define kODUndone 2UL
  20. #define kODRedone 3UL
  21. typedef
  22. boolean  ODBoolean;
  23.  
  24. /*
  25.  *  boolean value. Do not count on its size.
  26.  */
  27. typedef
  28. octet  ODUByte;
  29.  
  30. /*
  31.  *  unsigned >= 8-bit value
  32.  */
  33. typedef
  34. char  ODSByte;
  35.  
  36. /*
  37.  *  signed >= 8-bit value
  38.  */
  39. typedef
  40. unsigned short  ODUShort;
  41.  
  42. /*
  43.  *  unsigned >= 16-bit value
  44.  */
  45. typedef
  46. short  ODSShort;
  47.  
  48. /*
  49.  *  signed >= 16-bit value
  50.  */
  51. typedef
  52. unsigned long  ODULong;
  53.  
  54. /*
  55.  *  unsigned >= 32-bit value
  56.  */
  57. typedef
  58. long  ODSLong;
  59.  
  60. /*
  61.  *  signed >= 32-bit value
  62.  */
  63. typedef
  64. float  ODFloat;
  65.  
  66. /*
  67.  *  floating-point value
  68.  */
  69. typedef
  70. void*  ODPtr;
  71.  
  72. /*
  73.  *  OD pointer
  74.  */
  75. typedef
  76. corbastring  ODISOStr;
  77.  
  78. /*
  79.  *  7 bit ascii. No embedded NULLs. NULL
  80.  *   terminated.
  81.  */
  82. typedef
  83. ODISOStr ODType;
  84.  
  85. /*
  86.  *  Used for storage types, focus types,
  87.  *   data types, etc.
  88.  */
  89. typedef
  90. ODULong ODTypeToken;
  91.  
  92. /*
  93.  *  Tokenized form of ODType
  94.  */
  95. typedef
  96. ODULong ODID;
  97.  
  98. /*
  99.  *  Storage Unit IDs
  100.  */
  101. typedef
  102. ODULong ODPersistentObjectID;
  103.  
  104. /*
  105.  *  Persistent Object ID used for scripting
  106.  */
  107. typedef
  108. ODType ODValueType;
  109.  
  110. /*
  111.  *  Used to identify the type of the value, e.g., TEXT, PICT and so
  112.  *   on. Obviously, the type doesn't need to be an OSType.
  113.  */
  114. typedef
  115. ODSLong ODError;
  116.  
  117. /*
  118.  *  >= 32-bit exception code
  119.  */
  120. typedef
  121. ODULong ODToken;
  122.  
  123. /*
  124.  *  >= 32-bit unsigned value for tokens
  125.  */
  126. typedef
  127. ODULong ODSize;
  128.  
  129. /*
  130.  *  >= 32-bit unsigned value for size
  131.  */
  132. typedef
  133. ODULong ODInfoType;
  134.  
  135. /*
  136.  *  The type for the part info stored in a frame
  137.  */
  138. typedef
  139. ODULong ODFlags;
  140.  
  141. /*
  142.  *  >= 32-bit unsigned value for flags
  143.  */
  144. #ifndef _IDL_SEQUENCE_octet_defined
  145. #define _IDL_SEQUENCE_octet_defined
  146. typedef struct {
  147.     unsigned long _maximum;
  148.     unsigned long _length;
  149.     octet *_buffer;
  150. } _IDL_SEQUENCE_octet;
  151. #endif /* _IDL_SEQUENCE_octet_defined */ 
  152. typedef
  153. _IDL_SEQUENCE_octet ODByteArray;
  154.  
  155. /*
  156.  *  ODByteArray should be used for foreign types larger than 4 bytes
  157.  *  and for variable length data in general
  158.  */
  159. typedef
  160. ODByteArray ODContainerID;
  161. typedef
  162. ODISOStr ODContainerType;
  163. typedef
  164. ODType ODObjectType;
  165. typedef
  166. ODType ODFocusType;
  167.  
  168. /*
  169.  *  This is a string, which can be tokenized
  170.  */
  171. typedef
  172. ODByteArray ODActionData;
  173.  
  174. /*
  175.  *  Action data for undo/redo
  176.  */
  177. typedef unsigned long ODFramePosition;
  178. #define kODFrameBehind 1UL
  179. #define kODFrameInFront 2UL
  180. typedef unsigned long ODTraversalType;
  181. #define kODTopDown 1UL
  182. #define kODBottomUp 2UL
  183. #define kODChildrenOnly 3UL
  184. typedef unsigned long ODSiblingOrder;
  185. #define kODFrontToBack 1UL
  186. #define kODBackToFront 2UL
  187. typedef unsigned long ODNSTypeSpec;
  188. #define kODNSDataTypeODObject 1UL
  189. #define kODNSDataTypeODValue 2UL
  190. typedef unsigned long ODRespectMarksChoices;
  191. #define kODDontRespectMarks 1UL
  192. #define kODRespectMarks 2UL
  193. typedef unsigned long ODActionType;
  194. #define kODSingleAction 1UL
  195. #define kODBeginAction 2UL
  196. #define kODEndAction 3UL
  197. typedef
  198. ODSLong ODFixed;
  199.  
  200. /*
  201.  *  16.16 fixed-point value
  202.  */
  203. typedef
  204. ODSLong ODFract;
  205.  
  206. /*
  207.  *   2.30 fixed-point value
  208.  */
  209.  
  210. /*
  211.  * -- Share exact same alignment between 68k & PowerPC.
  212.  * -- User to add padding to idl as desired for better alignment.
  213.  */
  214. #if powerc
  215. #  pragma options align=mac68k
  216. #endif
  217. typedef
  218. struct ODMatrix {
  219. ODFixed m[3][3];
  220.  
  221. /*
  222.  *  Same as "mapping" in QuickDraw GX.
  223.  */
  224. } ODMatrix;
  225. #if powerc
  226. #  pragma options align=reset
  227. #endif
  228. typedef
  229. ODSShort ODGraphicsSystem;
  230.  
  231. /*
  232.  *  Type of graphics system
  233.  */
  234. typedef
  235. ODSShort ODTransformType;
  236. typedef unsigned long ODGeometryMode;
  237. #define kODLoseGeometry 1UL
  238. #define kODPreserveGeometry 2UL
  239. #define kODNeedsGeometry 3UL
  240. typedef unsigned long ODLinkStatus;
  241. #define kODInLinkDestination 1UL
  242. #define kODInLinkSource 2UL
  243. #define kODNotInLink 3UL
  244. typedef unsigned long ODHighlight;
  245. #define kODNoHighlight 1UL
  246. #define kODFullHighlight 2UL
  247. #define kODDimHighlight 3UL
  248. typedef unsigned long ODDropResult;
  249. #define kODDropFail 1UL
  250. #define kODDropCopy 2UL
  251. #define kODDropMove 3UL
  252. #define kODDropUnfinished 4UL
  253. typedef
  254. ODULong ODLinkKey;
  255. typedef unsigned long ODTranslateResult;
  256. #define kODCannotTranslate 1UL
  257. #define kODCanTranslate 2UL
  258. typedef
  259. ODULong ODPlatformTypeSpace;
  260. typedef
  261. void*  ODValue;
  262. typedef
  263. ODID ODValueIndex;
  264. typedef
  265. ODID ODStorageUnitID;
  266. #define kODStorageUnitRefSize 4 /* 4 */
  267. typedef
  268. ODUByte ODStorageUnitRef[4];
  269. typedef
  270. ODULong ODStorageUnitKey;
  271. typedef
  272. ODISOStr ODPropertyName;
  273. typedef
  274. ODISOStr ODStorageUnitName;
  275. typedef
  276. ODULong ODPositionCode;
  277. typedef
  278. ODID ODDocumentID;
  279. typedef unsigned long ODPurgePriority;
  280. #define kODInvisibleBlocks 1UL
  281. #define kODAllBlocks 2UL
  282. #define kODVisibleBlocks 3UL
  283. typedef unsigned long ODCloneKind;
  284. #define kODCloneCopy 1UL
  285. #define kODCloneCut 2UL
  286. #define kODClonePaste 3UL
  287. #define kODCloneDropCopy 4UL
  288. #define kODCloneDropMove 5UL
  289. #define kODCloneToLink 6UL
  290. #define kODCloneFromLink 7UL
  291. typedef unsigned long ODDraftPermissions;
  292. #define kODDPNone 1UL
  293. #define kODDPTransient 2UL
  294. #define kODDPReadOnly 3UL
  295. #define kODDPSharedWrite 4UL
  296. #define kODDPExclusiveWrite 5UL
  297. typedef
  298. ODID ODDraftID;
  299. typedef
  300. ODISOStr ODDraftName;
  301. #define ex_ODException "::ODException"
  302.  
  303. /*
  304.  * -- Share exact same alignment between 68k & PowerPC.
  305.  * -- User to add padding to idl as desired for better alignment.
  306.  */
  307. #if powerc
  308. #  pragma options align=mac68k
  309. #endif
  310. typedef
  311. struct ODException {
  312. ODError error;
  313. char  message[256];
  314. } ODException;
  315. #if powerc
  316. #  pragma options align=reset
  317. #endif
  318. #define OpenDoc_Global_TypesB_OpenDoc_Types_Version "1.0."
  319. #define OpenDoc_Global_TypesB_OpenDoc_Types_Version "1.0."
  320.  
  321. #ifndef SOM_DONT_USE_SHORT_NAMES
  322. #ifndef SOMTGD_OpenDoc_Types_Version
  323.     #ifdef OpenDoc_Types_Version
  324.         #undef OpenDoc_Types_Version
  325.         #define SOMTGD_OpenDoc_Types_Version 1
  326.     #else
  327.         #define OpenDoc_Types_Version OpenDoc_Global_TypesB_OpenDoc_Types_Version
  328.     #endif /* OpenDoc_Types_Version */
  329. #endif /* SOMTGD_OpenDoc_Types_Version */
  330. #endif /* SOM_DONT_USE_SHORT_NAMES */
  331.  
  332. /*
  333.  * End of user-defined types.
  334.  */
  335. #endif /* SOM_Module_OpenDoc_Global_TypesB_defined */
  336.